package edu.hitsz.shoot;

import edu.hitsz.bullet.BaseBullet;

import java.util.List;

public class ShootContext {
    private ShootStrategy shoot_strategy;

    public ShootContext(ShootStrategy _shoot_strategy)
    {
        this.shoot_strategy = _shoot_strategy;
    }

    public  void setStrategy(ShootStrategy _shootstrategy)
    {
        this.shoot_strategy = _shootstrategy;
    }

    public List<BaseBullet> execiteStrategy()
    {
        return shoot_strategy.shoot();
    }


}
